
<script type="text/javascript">
$(function() {
    $(".datepost").datepicker({
		duration: '', 
		dateFormat: 'yy-mm-dd',
		timeFormat: 'H:i',
		time24h: true,
        showTime: true,
        constrainInput: false
	});
});
function add_content()
{
  var options = { };
  $('#frmManagement').ajaxSubmit(options);
}
</script>
<div class="gr_perm_error" style="display:none;">
	<p><strong>FAILURE: </strong><span id="txt_error">Permission Denied.</span></p>
</div>
<div class="table">
	<div class="head_table"><div class="head_title_edit"><?=$module?></div></div>
	<div class="clearAll"></div>
	<form id="frmManagement" action="<?=PATH_URL.'admincp/'.$module.'/export_excel/'?>" method="post" enctype="multipart/form-data">
	<div class="row_text_field">
		<table cellspacing="0" cellpadding="0" border="0" width="100%">
			<tr>
				<td class="left_text_field">Date Start:</td>
				<td class="right_text_field"><input value="<?php if(isset($result->datestart)) { print $result->datestart ; }else{ print '';} ?>" type="text" name="datestart" id="caledar_to" class="datepost" /></td>
			</tr>
		</table>
	</div>
    <div class="row_text_field">
		<table cellspacing="0" cellpadding="0" border="0" width="100%">
			<tr>
				<td class="left_text_field">Date End:</td>
				<td class="right_text_field"><input value="<?php if(isset($result->dateend)) { print $result->dateend; }else{ print '';} ?>" type="text" name="dateend" id="caledar_from" class="datepost" /></td>
			</tr>
		</table>
	</div>
    <div class="row_text_field">
		<table cellspacing="0" cellpadding="0" border="0" width="100%">
			<tr>
				<td class="left_text_field"></td>
				<td class="right_text_field"> <a class="a_addnew" href="javascript:void(0)" onclick="return add_content();"   >Export</a></td>
			</tr>
		</table>
	</div>
    <div id="status"></div>
	</form>
</div>